home *** CD-ROM | disk | FTP | other *** search
/ Aminet 24 / Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso / Aminet / dev / c / AmiVoGL_MDEV.lha / src / Makefile.orig < prev    next >
Makefile  |  1992-03-05  |  2KB  |  94 lines

  1. #
  2. # Make the vogl library.
  3. #
  4. # Below are our defaults for compilers etc. These are set in the
  5. # main Makefile.
  6. #
  7.  
  8. CC = cc
  9.  
  10. # Hack because our version of gcc produces code which the gnu as 
  11. # program can't eat. Until someone installs the patches then we'll
  12. # use the normal sun as.
  13. #
  14. #.c.o:
  15. #    $(CC) -S $(CFLAGS) $*.c
  16. #    as -o $*.o $*.s
  17.  
  18. MCFLAGS = -g -fsingle
  19.  
  20. LIB = libvogl.a
  21.  
  22. RANLIB = ranlib        # = "ar ts" for SYS5
  23.  
  24. #DEVICES = -DSUN -DTEK -DHPGL -DPOSTSCRIPT -DPOSTSCRIPTP -DDXY
  25. DEVICES = -DSUN
  26.  
  27. DOBJS = ../drivers/sun.o
  28.  
  29. HDRS =    vogl.h
  30.  
  31. # Amiga stuff
  32. DEVICES = -DPOSTSCRIPT -DX11 -DAMIGA
  33. DOBJS   = proj:vogl/drivers/ps.o proj:vogl/drivers/X11.o proj:vogl/drivers/amiga.o
  34. FONTLIB = proj:vogl/fonts
  35. RANLIB  = echo
  36. DEST    = proj:vogl/lib
  37. POBJS   = 
  38.  
  39. CSRC =    arcs.c attr.c buffer.c clip.c curves.c draw.c drivers.c \
  40.     viewing.c viewp.c mapping.c matrix.c move.c objects.c patches.c \
  41.     points.c polygons.c rect.c tensor.c text.c newtokens.c trans.c \
  42.     scale.c getgp.c valloc.c yobbarays.c pref.c vcalls.c \
  43.     queue.c
  44.  
  45. COBJS =    arcs.o attr.o buffer.o clip.o curves.o draw.o drivers.o \
  46.     viewing.o viewp.o mapping.o matrix.o move.o objects.o patches.o \
  47.     points.o polygons.o rect.o tensor.o text.o newtokens.o trans.o \
  48.     scale.o getgp.o valloc.o yobbarays.o pref.o vcalls.o \
  49.     queue.o
  50.  
  51.  
  52. FOBJS =    sunfort/farcs.o sunfort/fattr.o sunfort/fcurves.o \
  53.     sunfort/fdraw.o sunfort/fdrivers.o sunfort/fgetgp.o  \
  54.     sunfort/fviewing.o sunfort/fviewp.o sunfort/fmatrix.o sunfort/fmove.o \
  55.     sunfort/fobjects.o sunfort/fpatches.o sunfort/fpoints.o sunfort/fpoly.o\
  56.     sunfort/frect.o sunfort/ftrans.o sunfort/fyobbarays.o sunfort/ftext.o \
  57.     sunfort/fbuffer.o sunfort/fpref.o sunfort/fqueue.o sunfort/fvcalls.o \
  58.     sunfort/fbgnend.o
  59. #
  60. #  You can use -DSYS5 on a System V system.
  61. #
  62. CFLAGS= $(DEVICES) $(MCFLAGS)
  63. LINTFLAGS=
  64.  
  65.  
  66. $(LIB): $(DOBJS) $(COBJS) $(FOBJS) $(POBJS) vogl.h
  67.     rm -f $@
  68.     ar rcv $@ $(DOBJS) $(COBJS) $(FOBJS) $(POBJS)
  69.     $(RANLIB) $@
  70.  
  71. lint:
  72.     lint -hac $(DEVICES) $(CSRC) sunfort/*.c -I. -lm > vogl.lint
  73.  
  74. clean:
  75.     rm -f $(COBJS) core
  76.     cd sunfort; make clean
  77.     cd ../drivers; make clean
  78.  
  79. clobber:
  80.     rm -f $(LIB) $(COBJS) $(FOBJS) core *.lint
  81.     cd sunfort; make clean
  82.  
  83. $(COBJS): vogl.h
  84.  
  85. $(FOBJS): vogl.h
  86.     cd sunfort; make -f Makefile MCFLAGS="$(MCFLAGS)"
  87.  
  88. $(DOBJS): vogl.h
  89.     cd ../drivers; make -f Makefile \
  90.             "CC=$(CC)" \
  91.             MCFLAGS="$(MCFLAGS)" \
  92.             DOBJS="$(DOBJS)"
  93.  
  94.